#ifndef _LASTPOSITION_H_
#define _LASTPOSITION_H_

#include "Sensor.h"
#include <QtGui/QLabel>

class LastPosition : public Sensor {
private :
	Coord _current ;
	Coord _last ;
	QLabel* _pos ;
public :
	LastPosition(RobotMap* map = 0) ;
    virtual ~LastPosition() ;
	
	int firstValue() ;
	int secondValue() ;
	
	void updateDatas() ;
};

extern "C" Sensor * create_LastPosition(RobotMap* rm, Robot* r) 
{
	return new LastPosition(rm) ;
}

#endif // _LASTPOSITION_H_